make authenticate.js