fix typo in validator