Add flash messages to the response