added flash messages in review