moved home index into the app template
added login and logout