A valid credit card is composed of several parts. The first few digits of the credit card number (usually up to six digits) are known as the identification number (IIN) or the bank identification number (BIN). The next two parts are the individual account identification number and a single digit checksum in that order. The single digit checksum is used to validate the credit card number to prevent any errors and is also the resulting number when using the Luhn algorithm.