fix typo in validator factory