fixed bug in which form fields were not being passed through