Add target and field class for form elements.