Validate function added to ProblemInstance