fixed spageti code in input tags