Fixed bug where resubmitting a form would cause validation to fail