Railroading in itself is not a wrong technique per se, what matters is the fact that your players didn't notice it. Any smartly executed 'railroaded' plot is indistinguishable from a dynamically evolving scenario, because the fact that you [i]want[/i] the RP to go a certain direction stays within your head and your head only. Having a goal and working to it is not a bad thing.