validate provider and dp