removed the warning div if no errors