add name to field attribute