fix the request method for user login