Move configuration code from App to LoginController.