Let $X$ be a Banach space and $A : X \rightarrow X$ linear operator such that for any $\phi\in X'$ operator $\phi \;\circ A$ is continuous. I want to prove that $A$ is also continuous.
My work so far
I wanted to use closed graph theorem (this situation is quite suitable for this theorem. We have linear operator between Banach spaces)
To show that $A$ is continuous using closed graph theorem I should prove that for any $(x_n) \subset X$, $x_n \rightarrow 0$, $A(x_n) \rightarrow y$ we have $y = 0$
I tried some tricks, firstly, becuase $\phi \circ A$ is bounded:
$$0 \le \|(\phi \circ A)(x_n)\| \le \|\phi\circ A\|\cdot \|x_n\| $$
but becuse $x_n \rightarrow 0$ then $(\phi\circ A )(x_n) \rightarrow 0$
Also because $A(x_n) \rightarrow y$ then $\phi(A(x_n)) \rightarrow \phi(y)$ (becuase $\phi$ is continuous).
Out of these two facts we have that $\phi(y) = 0$
And then I tried to somehow prove that $\phi(y) = y$ but I couldn't. I also tried to rewrite somehow
$\|y\| \le $ something that tends to $0$
but also I didn't figure out anything. Could you please give me a hand?