add templates for layout, index and login pages
fix templates and routes for login