Created policy for flash messages