complete validator and fix typo