added login/logout functionality with openid.