title: alert not showing after form validation success
body: <p>I am trying to get a console log message if my validation passes but in its current state it doesn't do anything. All the validation errors display as expected but if there are no errors the success console log message doesn't display. </p>
  
  <pre><code>    $.ajax({
                  url:'php/functions.php',
                  type:'POST',
                  dataType:'json',
                  data: {name: name, email: email, venue: venue, guests: guests, comments: comments},
                  })
  
              .done(function(data) {
  
                  console.log(data);
  
                  if(!data.success) {
  
                      $( "#submit" ).prop('disabled', false);
  
                      if(data.errors.name) {
                          $( "#error-name" ).empty().append(data.errors.name).fadeIn();
                      }
  
                      if(data.errors.email) {
                          $("#error-email").empty().append(data.errors.email).fadeIn();
                      }
  
                      if(data.errors.venue) {
                          $( "#error-venue" ).empty().append(data.errors.venue).fadeIn();
                      }
  
                      if(data.errors.guests) {
                          $( "#error-guests" ).empty().append(data.errors.guests).fadeIn();
                      }
  
                      if(data.errors.comments) {
                          $( "#error-comments" ).empty().append(data.errors.comments).fadeIn();
                      }
  
                  } else {
  
                      alert("okay!");
                  }
              })
  
              .fail(function(jqXHR, textStatus, errorThrown) {
                      console.log(textStatus + ': ' + errorThrown);
              });
  </code></pre>