simple before filter for flash messages