added controller-level validations for updating and deleting lessons