Foreign Key Relation

iam using my application foreign key relation, i have a three tables login ,articles and artcategory whenever i create a new articles in my tables that time i used a before save based on login id i gave a foreign key relation

that time its gives a one errror Property "CWebApplication.login" is not defined.

anyone help me to solve this error