add validation block to copy functions (#4596)