Error handling during registration