Reset variable after submission