adding input to fields