added new interface method isLoggedIn