Error handling added to LoginController.Login.