Register Primary key fieldname

-Check primary key is true and column name exists
as per @sjmcdowall suggestion :)