preserving main registration form fields when submit fails; closes #41