fixed error with geolocation when user isn't logged in