fix validation code