fix flash message after successful submission