tests for LoginController