Created a Login class.

It will be easier to test small classes with well defined functionalities.