validation code update