update error warning, add error div