Add some security check on imported data