Refactor flash message generation.
Merge branch 'signup-page'