Only check user location if the user is logged in