On your login page you should have the Authenticate user server behavior. In here you need to make sure that you are storing the UserID in a session variable.
Once you have done that you can then reference this session variable for the userID in your inserts. You just select the UserID session variable as the value for your users_clients column using the lightning bolt.