Fixed logout button showing if logging out from the index page