Added a function called verifyNumber to make the program run better.