fix typo in validation code