add a isLoggedIn method to the usersession and deprecate the isLoggedIn method on the api