finish login/logout part and properly show them in index.html