Fixed form submit bug. Was sending undefined variable