added a string check when creating attributes for a form field
added lang function to label of "heading" field in the default main layout