New version from Chunming. Added text to describe validation errors