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

Ok to merge to master.