In the attachment below, note how you somehow added a negative sign on the right side of the equation in going from the first to the second equation.
Also, on the left side of the second equation, the denominator should not have a negative sign (assuming your convention that g is a negative number). This error won't matter here since you are squaring the entire quantity.
In your last equation, the denominator on the right side should not have a negative sign. This negative sign is the one you somehow added when going from the first to the second equation.
You can see how the overall signs don't agree for the left and right sides of the last equation. On the left side, you have yf - yi. So, the left hand side is overall negative because yf is less than yi. But the right hand side of your equation as written will give a positive quantity overall due to the error of the negative sign in the denominator.
Also, as you have already noted, the right hand side of the last equation still has a missing factor of 2 in the quantity inside the parentheses. (You have the factors of 2 correct in the next to last equation.)