Added key to Provider class
Added validate method to Provider