Added isUserLoggedIn() fn for Luis