added error message notification.