Add better logging in LoginView.