Added validate method to Provider