The validator element

Only valid as a child of a validation trait, validator declares a validation rule to check user input in a form, and prevent form submission unless the validation check is successful.