Pass in the correct params to the login request and use the right endpoint