fix typo in validate