Registration of New Users unable to pass the tests

Tell us what’s happening:
**unable to pass these four tests :

  1. You should register route and display on home.

  2. Registering should work.

  3. Login should work.

4.Logout should work.

Your code so far
https://mrmrr-advanced-node-and-express.glitch.me

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36.

Challenge: Registration of New Users

Link to the challenge:

You’are using this code
res.render(process.cwd() + '/views/pug/index.pug',

Did you check the index.pug file ? there are some logic, try to understand it first - then think what to do.

You’ll find there something like this if showRegistration, if showLogin
Moreover, you need a database connection to complete this, better to do it from the beginning of the section if you could not understand the point