Add required attribute to mandatory form fields