add loginPage and login method