added optional role in field to the custom form for editor role