Now injecting toastr and logging more specify types of errrors