Fixed overriding authenticateUser method and changes to package.json and templates