update to registerUser