Adds name fields to form elements