updated flash notifier to handle validation errors