added toast for errors