Added validateSet and validateSave hooks.