add validation utility
add validation utility