ensure that flash messages will be displayed