Find the solution of the differential equation that satisfies the given initial condition. xy' + y = y^2 , y(1) = -2

I've been attempting to solve it by separable equations, by making the equation xy'=y(y-1), but my answer has not been working correctly.