fixed a primary key issue with the User model