Proposed new feature: For custom validation functions: include all form fields in $params (and not only the fields that can be edited). This to be able to use all fields for the validation checks!