added onceLoggedIn method