I'm trying to re-learn first-order logic and so I've tried to prove the following statement
$$ (p \rightarrow q) \rightarrow q \Leftrightarrow p \vee q $$
I tried to begin like this using the implication equivalence twice:
\begin{array} ((p \rightarrow q) \rightarrow q &\Leftrightarrow (\neg p \vee q) \rightarrow q\\ &\Leftrightarrow \neg (\neg p \vee q) \vee q\\ &\Leftrightarrow (p \wedge \neg q) \vee q \end{array}
Then I used the distributive property:
\begin{array} &\Leftrightarrow p \vee q \wedge \neg q \vee q \end{array}
And because $(\neg q \vee q)$ is a tautology, we can omit it in the formula:
\begin{array} &\Leftrightarrow p \vee q \end{array}
Is my reasoning correct? My logic skills have become really rusty as I've not seen in several years and I'm not really sure about it.