customize email and display flash message for form