Remove empty form before submitting