localstorage and toastr.error