Added login and register methods

No exceptions handling