Fix authentication to edit & update.