Revert "Revert "fixing bugs - userid back to string""

This reverts commit a0fbae4349d38179b76dce481d9e721f9fe85ca4.