added 'flash' message once user inputs data on form page