exit the edit route when a user logs out