changed authenticate method in config.js.example