make logged in a private variable