you can't move this out of the validator fn because we need to reparse the value on each validation