Refactored provider_applications controller and added exception raising ...

...when no provider app is found for all providers