Adding logout optin that redirects to index which requires login.