Changing to mobile_login function to use check_password_hash()