correctly get the userId