Make sure that when the card is recognized, the length is limited to that card type.