updated flash messages and form display