PB Add validations when opening a pipe