Fixed the validation problem where error messages are not correct when both workflow and validation problems are present