Added new unit test for login service
Added login method implementation.