cost type validation