Added passportjs authentication and encryption