Fixed validation for no PK or multiple Pks