fix the change-auth-parent bug in registration