Edit check for invalid data