implemented login  page and updated User class with login methods