title: Unable to get "Submit" button to work using Node.js and the Jade
body: <p>I have simple piece of code to Add users in to my application which inserts the data in to my backend cassandra DB. For some reasons the Submit button is not working. It won't give any error.</p>
  
  <p>JS file:</p>
  
  <pre><code>var express = require('express');
  var router = express.Router();
  var cassandra = require('cassandra-driver');
  
  var client = new cassandra.Client({contactPoints : ['&lt;DatabaseIP&gt;']});
  client.connect(function(err, result){
      console.log('cassandra connected: adduser');
  });
  
  router.get('/', function(req, res){
      res.render('adduser');
  });
  
  var upsertUser = 'INSERT INTO tablename(username, password, email, name) VALUES(?,?,?,?)';
  
  router.post('/', function(req, res){
      client.execute(upsertUser, [req.body.username,req.body.password,req.body.email,req.body.name],
      function(err, result){
          if(err){
              res.status(404).send({msg: err});
          } else{
              console.log ('User Added');
              res.redirect ('/users');
          }
      });
  });
  
  
  module.exports = router;
  </code></pre>
  
  <p>Jade file:</p>
  
  <pre><code>extends layout
  
  block content
      h1 Add User
      form#formAddUser(name="adduser", method="post", action="/adduser")
      div
          input#inputUserName(type="text", placeholder ="Enter Username", name="username")
      div
          input#inputPassword(type="password", placeholder ="Enter Password", name="password")
      div
          input#inputEmail(type="text", placeholder ="Enter Email Address", name="email")
      div
          input#inputName(type="text", placeholder ="Enter Full Name", name="name")
      div
          button#btnSubmit(type="submit") Submit
  </code></pre>