made edit only available if logged in