validation on pipes