Fixes issue #588: Added afterValidate to ActiveForm.