Controller unit test for login