Factorize input form for single text field inputs