Added validation for structured conditions