add some test for login controller