refactoring of code + use of model + confirm mobile number