adds validation for Table objects