Add name attribute to message field