fixing for users not logged in