added the login page and login mehod