flash msg added for error