tried to add unit test to login ctrl, not working so well