Modified the logic to show only one flash message on error.
fixes #624
Merge remote-tracking branch 'origin/Bug#624'
Small fixes in flash messages after 67ca750f46d, refs #624