Function validateConstraints