Quote:
Violation of PRIMARY KEY constraint 'PK_LogIn'. Cannot insert duplicate key in object 'dbo.LogIn'
It means you are breaking the rules of
PrimaryKey
and that is to insert another key, which is already present in a row.
Primary key can't be duplicate. When you explicitly insert that from the code, it should be unique that is it should different than all the key values present in that particular column.
If you insert something, which is already present, then this issue comes.