title: Jquery Validation Remote: displaying 1 as error message
body: <p>I am trying to validate username field in my form using jquery validation plugin. I have the following custom rules. </p>
  
  <pre><code>username: {
              required: true,
              minlength: 2,
              remote: {
                  url: '&lt;?php echo base_url();?&gt;mycontoller/myfunction',
                  type: 'post'
              }
  </code></pre>
  
  <p>Now the problem is if  my controller looks like following the plugin displays "1" as error message. </p>
  
  <pre><code>     if(1&gt;2){
                  echo False;
              } else{ echo True;}
  </code></pre>
  
  <p>But if I replace the code of the controller with following code, then it display an error message saying-  the username already exists. </p>
  
  <pre><code>     if(1&lt;2){
                  echo False;
              } else{ echo True;}
  </code></pre>
  
  <p>Now could you please tell me how to get rid of that "1" or what is the proper way to send back the values(false or true) from controller to view.</p>
  
  <p>Just for your information. I am displaying all my jquery validation error messages inside a span.
  like this.     </p>
  
  <pre><code>         &lt;span class="errormsg"&gt;&lt;/span&gt;.
  </code></pre>