added error check (temp) after drupal_form_submit