Remove invalid validation code.