correcting a bug with the onsubmit handler of the email pool simplify the