Added documentation for events

onValidateBefore and onValidateAfter