flash messages fixed