Changed session flash messages to array