fix form submit code to deal with textareas