Validation foreach