added session and login/logout boiilerplate stuff