I must solve the following DE: $\displaystyle x'(x-x^2)=t+t^2$.

My attempt: $\displaystyle (x-x^2)dx=(t+t^2)dt \Rightarrow x^2 \left ( \frac{1}{2}-\frac{x}{3} \right)= t^2 \left ( \frac{1}{2}+\frac{t}{3} \right ) +C$. I feel I'm on the wrong direction. How would you tackle it?