Add Authentication Check for index.html. Update main.js.