This is partly a comment on the answer given by Blah, but also an answer in its own right. The OP's proof is basically correct; it lacks only the explicit statement that $\sqrt{ab}+\sqrt a\sqrt b\not=0$ if $a,b\gt0$. Moreover the OP's proof essentially contains a proof of the fact Blah says you need to know.
Let me re-express what's being asked for. Suppose $p$ is a positive number such that $p^2=ab$. Likewise suppose $r$ and $s$ are positive numbers such that $r^2=a$ and $s^2=b$. We wish to prove $p=rs$. The OP's proof starts by assuming $p\not=rs$, which means $p-rs\not=0$. Multiplying this by the positive (hence non-zero) quantity $p+rs$, we get
$$(p+rs)(p-rs)=p^2-(rs)^2\not=0$$
But
$$p^2-(rs)^2=p^2-r^2s^2=ab-ab=0$$
which is a contradiction. Hence we must have $p=rs$. (In particular, by setting $b=1$ and taking $s=1$ to be "a" square root of $b$, we find that $p=r$ if $p^2$ and $r^2$ both equal $a$.)
One final remark (mostly to the OP). Note that instead of a string of formulas, I wrote things out in more or less complete sentences, making explicit the logical connections. I would strongly encourage the OP to do so as well, especially when first learning to write proofs (which I assume is the case here).