Fix style of error messages during registration