Finishing up the login/logout flow