added flash msg
added flash messages