typo and validation