credit card validation refactoring using credit_card_validations