Changed error message to include toast.