Added onValidation, onBeforeUpdate, onUpdate, onAfterUpdate and onUpdateError callbacks.