simplified example validator.