update the login flow