adding login and index pages, and routes