Discore error and flash messages