Let $f$ be a non-trivial linear functional on $X$, and let $\mathcal{N}(f)$ be the null space of $f$. There exists $y \in X$ such that $f(y)=1$ because $f$ is non-trivial. Therefore,
$$
x = f(x)y + (x-f(x)y) \in [\{y\}]+\mathcal{N}(f), \;\;\;(\dagger)
$$
where $[\{y\}]$ is the one-dimensional linear space spanned by $y$. Hence $X/\mathcal{N}(f)$ is one-dimensional, and the quotient map is
$$
x \mapsto f(x)y + \mathcal{N}(f).
$$
If $\mathcal{N}(f)^{c}$ denotes the norm closure of $\mathcal{N}(f)$, then it follows that either $\mathcal{N}(f)^{c}=\mathcal{N}(f)$ or $\mathcal{N}(f)^{c}=X$. If $\mathcal{N}(f)^{c}=\mathcal{N}(f)$, then $X/\mathcal{N}(f)$ is a normed space, and the quotient map from $X$ to $X/\mathcal{N}(f)$ is continuous in norm, and this map agrees with $f$ because $x\mapsto f(x)y$ under this quotient map, because of $(\dagger)$. So $f$ is continuous if $\mathcal{N}(f)$ is closed. Conversely, if $f$ is continuous, then $\mathcal{N}(f)=f^{-1}\{0\}$ is closed. If $f$ is not continuous then $\mathcal{N}(f)^{c}=X$, which means that $\mathcal{N}(f)$ is a dense subspace of $f$ in $X$.