Simple login and register with Nodejs