changed the login method

Changed the login method