Started writing functional tests for LoginController.