Toastr error messages added

better error checking with error messages that pop up