Changed the login method to check requests.arg