validation for define statements