try to set enctype for parent form rather than relying on a specific class