title: Jquery Validation check username with remote
body: <p>I am using the validation plugin and Laravel 4.2.
  I try to check the username via ajax, but I can't get it work. 
  The username can always be taken, doesn't matter if exists or not.</p>
  
  <p>My second issue is if I am using the validation rule remote, I can't submit the form.</p>
  
  <p>Does anybody know what I am doing wrong? Because in the chrome log all is fine, the request is sent and I can see the debug messages.</p>
  
  <p>Php</p>
  
  <pre><code>&lt;?php 
  use App\Models\User;
  class ValidationController extends BaseController {
  
  public function getCheckUsername() 
  {
      if(Request::ajax()) {
          $user = User::where('username', Input::get('username'))-&gt;get();
          if($user-&gt;count()) {
              return Response::json(array('msg' =&gt; 'true'));
          }
          return Response::json(array('msg' =&gt; 'false'));
  
      }
  
  }
  
  
  }
  </code></pre>
  
  <p>JS</p>
  
  <pre><code>$(document).ready(function()
  {
  $("form").validate({
  
  rules: {
          username: {
                  required: true,
                       rangelength:[3,255],
          remote: {
                  url:"http://"+location.host+"/validation/checkusername",
                  type: "get",
                  success: function(msg){
                   if(msg.msg == 'true') {
                    console.log('exists');
                    return true;
                   }
                   console.log('doesnt exists');
                    return false;
                  }
  
                  },
  
  
                  },
    messages: {
              username: {
                  required: "Please Enter Username!",
                  remote: "Username already in use!"
              }
          }
  });
  });
  </code></pre>
  
  <p>I also tried to create an own rule via $.validator.addMethod(), but this doens't work either.</p>