$(document).ready(function() {
  // validate the contact form when it is submitted
  $("#contact_form").validate();
 });