Catching errors from registration