cost validation