reflect validation code issue