Fixed account registration

Corrected an error that caused the account registration page to
fail.