check.conditions function

Check if the design is valid