Fixed typo and validation error