added __construct funtion for basic authentication. Index includes pagination. In the store() and update(),  Session::flash... creates success alerts or failure alerts in the view.