Refactor index page
Insert login and logout action
Insert login and logout action
Insert cookies, session and json feature