Changes to the login api