Xbox accounts

If I recall correctly, there was a code inside the disc case that once entered would activate the game during the installation process. I remember getting a new P.C and it wouldnt authenticate using the code. I believe at first i was told to purchase another copy. But I found that to be ludacris, and stated my displeasure. Eventually got through to someone and it took more than a couple of days to get it sorted. I was given a new authentication code or something. The frustration was real.