Improved error messages for registration