form workflow and flash messages implemented