recorgnise validate code