I was asked to proof the right and left cancellation laws for groups, i.e.
If $a,b,c \in G$ where $G$ is a group, show that $ba = ca \implies b=c $ and $ab = ac \implies b = c$
For the first part, I went about saying $$ba = ca \iff a = b^{-1}ca \iff b^{-1}c = e \iff (b^{-1})^{-1} = c \iff b = c$$
Similar proof for the second part.
However, I am afraid that I am thinking in circles here. Is this a valid proof?