Added required attribute to fields