added validation to workflow
updated example