check validation code