Fixes the setting of the unique userid for each client

 Please enter the commit message for your changes. Lines starting