add "success" and "error" styles to flash messages