fixing auth/login handler and ui things.