Unable to create user entity relationship with another entity

Hi,


I'm creating an web application ,

I decided to use the User Entity table (already provided by service studio) with the Id column

I created  List entity, and wants one to many relationship with user entity, so added the userID attribute to list entity, So my requirement is when the user logs and fills some details in List Screen, userId attribute should be updated as logged in userID. But UserId is not updating and it is taking as 0.

Can anyone help, where i am doing wrong!

Thanks,

Pavani

Problem solved 

Forgot to include asssign operation