Correct submit function.