add validation to pallets