Incorporating ngNotify into the error/success callbacks.