Improved error messaging for registration.