Working form with flash messages