show flash message on click send button with error, closes #4605