minor changes to the login flow