Fixed the auth filters and login/logout behavior of the UI