Added flash messages in logout.