add log out link, make redirects go to front page by default