Fixed error validation to update when resubmitting form