Show that the sum of the observations of a random sample of size $n$ from a gamma distribution that has pdf $f(x,\theta)=(1/\theta)e^{-x/\theta}$, $0<x<\infty$, $0<\theta<\infty$, zero elsewhere, is a sufficient statistic for $\theta$.
This is what I did (but it's wrong, I don't know why):
$$Y=X_1 + X_2 + \cdots + X_n$$
$$f(y,\theta)= \left(\frac{1}{\theta}\right)e^{-y/(\theta)}$$
$$f(x_1;\theta)f(x_2; \theta)\cdots f(x_n,\theta) = \left(\frac{1}{\theta}\right)^n e^{\frac{-x_1-x_2-\cdots-x_n}{\theta}}$$
So...
$$\frac{f(x_1;\theta)f(x_2; \theta)\cdots f(x_n,\theta)}{f(y,\theta)} = \frac{(\frac{1}{\theta})^n e^{\frac{-x_1-x_2-\cdots-x_n}{\theta}}}{(\frac{1}{\theta})e^{-y/\theta}}$$
But that's equal to $(1/\theta)^{n-1}$, which does include $\theta$, so how is it sufficient? I'm sure I did a mistake but I don't know where...
Thanks in advance