Added flash messages to template