added validation for provider fields