modified drupal_form_submit code