validating id formats; import and export