Fixed a variable name whoops in the registration code.