fixed alert box issue that caused all alert boxes to appear with a single form submit