Error checking on Data