add validation util