added validations for cost fields