The Theorem 4.19. is from Otto Forster's Lectures on Riemann Surfaces.
Theorem 4.19. Suppose $X$ is a manifold, $Y$ is a Hausdorff space and $p:Y\rightarrow X$ is a local homeomorphism with the curve lifting property. Then $p$ is a covering map.
Proof. Suppose $x_0\in X$ is an arbitrary point and $y_j$, $j\in J$, are the preimages of $x_0$ with respect to $p$. Take $U$ to be an open neighborhood of $x_0$ which is homeomorphic to a ball and $f:U\rightarrow X$ be the canonical injection. Then for each $j\in J$ there is a lifting $g_j:U\rightarrow Y$ such that $g_j(x_0)=y_j$. Let $V_j=g_j(U)$. Now one can easily convince oneself that $$p^{-1}(U)=\bigcup_{j\in J}V_j,$$ that the $V_j$ are pairwise disjoint open sets and that every mapping $p|V_j\rightarrow U$ is a homeomorphism.
I have a few difficulties in understanding the proof, first of all how the choice of $U$ has been made? Secondly, however, it is chosen how does the conclusion of the proof follow easily? Am I missing something trivial? The suggestions and comments will be appreciated.
$X$ is a manifold so every point has a neighbourhood $U$ homeomorphic to an Euclidean ball. Since $U$ is a ball then it is path connected, locally path connected and contractible. Meaning every map starting from it can be lifted. The "curve" lifting term is probably misleading. It should apply to wider range of maps (at least with balls as a domain, not sure if it is equivalent to lifting just paths), see here.
Now since $X$ is a manifold and $p$ is a local homeomorphism then $Y$ is a manifold. Additionally each $g_j$ is injective and thus the invariance of domain applies proving that each $g_j$ is open. In particular $V_j$ is open and $g_j$ is a homeomorphism onto image. Since $p|V_j$ is its partial inverse then $p|V_j$ is a homeomorphism onto image as well.
The invariance of domain may be an overkill but it's the simpliest way IMO to show that each $g_j$ is open.
Finally we will show that $V_j$ are pairwise disjoint. Assume that $V_j\cap V_k\neq\emptyset$. Then $g_j(z)=g_k(z')$ for some $z,z'\in U$ but
$$z=f(z)=p(g_j(z))=p(g_k(z'))=f(z')=z'$$
so both $g_j$ and $g_k$ are also liftings with respect to the fixed point $z=z'$. Since they share value at the fixed point then they have to be equal by the uniqueness of the lifting. It follows that $V_j=V_k$.