You cant mate.
(MAX) length wont be accepted as PK.
Use int instead and make your nvarchar(max) as index.
Using nvarchar as PK will make your searching really slow.
But if you still want to use nvarchar, declare the length. Something like this..
CREATE TABLE Login(
P_Id nvarchar(10) NOT NULL PRIMARY KEY,
password nvarchar(100) NOT NULL
)