Validation class for credit cards.