fixing api request user login