server.js example for authenticication