logout will now always redirect to the main page