declaring same option multiple times sets value to array of inputs