title: jQuery validate remote message
body: <p>I try to display an error message when email is used with jQuery validation.
  Unfortunately there is no error message, when the email is already used.
  I tried the following:</p>
  
  <p>Javascript</p>
  
  <pre><code>$('#registerForm').validate({
      rules: {
          registerEmail: {
              required: true,
              remote: 'ajax/ajax.validateEmail.php'
          }
      },
      messages: {
          registerEmail: {
             remote: 'E-Mail already taken'
          }
      }
  });
  </code></pre>
  
  <p>PHP</p>
  
  <pre><code>&lt;?php
  header('Content-type: application/json');
  
  $stmt = $mysqli-&gt;prepare("SELECT * FROM members m WHERE mEmail = ? LIMIT 1");
  $stmt-&gt;bind_param('s', $_POST['registerEmail']);
  $stmt-&gt;execute();
  $stmt-&gt;store_result();
  $stmt-&gt;fetch();
  
  if ($stmt-&gt;num_rows == 1) {
      echo false;
  }else{
      echo true;
  }
  </code></pre>
  
  <p>What am I doing wrong here?
  Thanks in advance for your help!</p>