add functional test for LoginForm controller