Ensure location is valid