input elements aren't in dom yet so can't get value