Authenticating users with Node.js, Express, Mongodb, Nodemailer and React.js