Close LoginView after logging in