1. Code refactoring
2. Add validateCreditNumber function