prevent warning when user is not logged in