contract id validator