Custom error messages for dojox/validate/check

refs #15495, pull request based on patch provided by @hudsonfoo