The main problem I'm having is that I'm getting $\hat{p}=\frac{\bar{x}}{n}$, not $\frac{x}{n}$.
For some reason, many of the derivations of the MLE for the binomial leave out the product and summation signs. When I do it without the product and summation signs, I get $\frac{x}{n}$, but leaving them in I get the following:
$$L=\prod_{i=1}^{n}{n \choose x_i}p^{x_i}(1-p)^{n-k_i}$$ $$\ell=\sum_{i=1}^{n}ln{n \choose x_i}+ln(p)\sum_{i=1}^{n}x_i +ln(1-p)\sum_{i=1}^{n}(n-x_i)$$
$$\frac{\partial \ell}{\partial p}=\frac{\sum_{i=1}^{n} x_i}{p}-\frac{\sum_{i=1}^{n}(n-x_i)}{1-p}$$
$$\sum_{i=1}^{n}x_i-\sum_{i=1}^{n}x_ip=\sum_{i=1}^{n}(n-x_i)p$$
$$p=\frac{\sum_{i=1}^{n}x_i}{\sum_{i=1}^{n}(n-x_i)+\sum_{i=1}^{n}x_i}$$
$$p=\frac{\sum_{i=1}^{n}x}{n\cdot n}$$
$$p=\frac{\bar{x}}{n}$$
What am I doing wrong? Any help is appreciated.