fixed regex validator to use utils.validateWithMessage