added correct enctype handling