Added validate util