Added method to get enctype from form