sets up pin in server.js