Validate unique keys automatically