Added the declaration of custom error messages inline