$G$ is a smooth manifold with group structure. The map $n(g,h) = gh^{-1}$ is smooth implies $G$ is a Lie Group (exercise 2.8, John Lee). We are using the definitions of smooth and etc from John Lee's "Smooth Manifolds".
We are suppose to show this using the definition of a Lie group as a smooth manifold with group structure, such that the multiplicative group operation and inverse are smooth maps.
Attempt:
The inverse map $n(e,h) = h^{-1} $ is smooth, since the restriction of $n$ is also smooth.
$n(g,e) = g$ is smooth, since the restriction of a smooth map is smooth. Let $m(g,h) = n(g,e)n(e,h) = gh$. This is smooth since it is the multiplication of smooth maps.
Question: Is my attempt correct? Especially the assumptions that restriction and multiplication of a smooth map is smooth.
For completeness: my attempt is correct. (see the comments)