title: Javascript REST API not processing correct values
body: <p>I have built a JavaScript Server Authentication API, but am facing some issues. When I pushed this POST request using Postman:</p>
  
  <blockquote>
    <p><a href="http://localhost:3000/signup?firstName=my&amp;secondName=Name&amp;email=test@test.com&amp;password=password" rel="nofollow">http://localhost:3000/signup?firstName=my&amp;secondName=Name&amp;email=test@test.com&amp;password=password</a></p>
  </blockquote>
  
  <p>The router triggers this function:</p>
  
  <pre><code>app.post("/signup", Auth.userExist, function (req, res, next) {
       if (!req.body.email || !req.body.password) {
              res.json({success: false, msg: 'Please pass email and password.'});
          } else {
              var newUser = new User({
              firstName: req.body.firstName,
              lasttName: req.body.lastName,
              email: req.body.email,
              password: req.body.password
              });
              // save the user
              newUser.save(function(err) {
              if (err) {
                  return res.json({success: false, msg: 'Username already exists.'});
              }
              res.json({success: true, msg: 'Successful created new user.'});
              });
          }
      });
  </code></pre>
  
  <p>The <code>please pass email and password</code> error is firing, I can't see why this would be happening?</p>