Added error checking for tags too short (<10 char) and parity check