Added a main page with links for the pages. A few improvements in login and logout