Update index.js

Removed todo's and added a setCookie to the register page, also disabled the buy buttons if the user isn't signed in.