implement readonly attribute boolean isLoggedIn

fixes #34