Refactored. Added Helmet security headers