add login and main page.