Implemented LoginService and appropriate tests.