Prevent ajax submit function being called when it fails validation
Only thing you should have to put in your AJAX submit callback is this

  if (!form_get_errors()) {
    // Do your processing
  }
  else {
    // Return your form with errors.
   return $form;
  }