registerUser returns inserted id