Adding Login method, and creating unit test.