Backend Code for User Authentication and Authorization via Json Web Tokens (JWT) using Node JS, Express JS and MongoDB