#1259 changes to show a more clear flash message error