adds required attributes to form fields. fixes recipient check.