Minor fixes related to class transformation of LoginController.