title: Check if values matchs in MongoDB
body: <p>I want to check with <code>mongodb</code> if <code>nickname</code> and <code>password</code> are <code>true</code> im trying to use the <code>$and</code> operator with <code>$regex</code> but I can't get it work. Can someone help me a hand with it currently have this;</p>
  
  <pre><code>checkNickname: function(nickname, password){
      var reNick = new RegExp(nickname, "i"),
          rePass = new RegExp(password, "i");
      getProfile.find( { $and :  [{
          nickname: { $ne: { $regex: reNick } } },
          { password: { $ne: { $regex: rePass} } } 
      ]}, function(data){
          console.log(data)
      });
  },
  </code></pre>