updated index.js file to show/hide login/logout buttons and redirect to
make cv page