Fixed a but where the attributes weren't saved.

Fixed a but where the attributes weren't saved in the
ValidateRegistration method.