Validate credit card numbers and determine the card type