check that userId exists