add login and index page