Added assertion to make sure clicking logout redirects correctly