Set vars for input on form submit