update redirect to index on good login and add log out button to header