added login/logout. tweaks to the html code