improved primary key validation. Now works regardless of the order
Merge pull request #28 from calonso/primary_key_validation_improvement

improved primary key validation. Now works regardless of the order