Make the registration xhr async, and check its result