clean up login/logout stuff in the ui and the redirection that happens