Changed API call for user authentication.