Log out button redirects to main page