adding name attribute to custom error