fixed flash messages not appearing