Add log out button and redirect when logged out