added login unit test