Added new method login()