possibility to setUserId

HI,

I added possibility to set user_id if it exists.