Example use of the validation API