Modify the function of login in the PhoneLoginController