Adds user exists verification in registerUser.