Note that if you get an Invalid CD Key error when signing into gamespy, this has something to do with the Registry CD key being corrupted(like as in deleted). Possibly caused by having the demo installed at the same time and/or uninstalling the demo after the full version is installed.

To fix the error, re-install HW2.