fixing provider validation