form submit error correction