Added protection on the provider view