new function in validation.py get_number_code()