validation and spell check