Let $R$ be a commutative ring with $1$. Suppose that $a, b \in R$, $b \notin R^\times$ and $\langle a \rangle$ is a maximal ideal of $R$. Prove that $a + \langle b \rangle$ is a unit in the quotient ring $R/\langle b \rangle$ if and only if $a$ does not divide $b$ in $R$. [Notice that $R^\times = \{ r \in R ~|~ r \text{ is a unit.} \}$].
$\textbf{My Attempt:}$
Prove of "$\implies$":
Which want to prove that if $a + \langle b \rangle$ is a unit in the quotient ring $R/\langle b \rangle$, then $a$ does not divide $b$ in $R$.
By contra-positive, we can prove that if $a$ divide $b$ in $R$, then $a + \langle b \rangle$ is not a unit in the quotient ring $R/\langle b \rangle$.
Assume $a$ divide $b$ in $R$.
Then, there exist $k \in R$ such that $b = ak$.
Since, $b \in R$ and $b \notin R^\times$.
Then, $b = b \cdot 1 \in \langle b \rangle$.
Since, $a \in R$. So, $ak = b \in \langle b \rangle$.
Then, $(a + \langle b \rangle)(k + \langle b \rangle) = ak + \langle b \rangle = \langle b \rangle = 0 + \langle b \rangle \neq 1 + \langle b \rangle$.
So, $a + \langle b \rangle$ is not a unit in the quotient ring $R/\langle b \rangle$.
So, this proves that if $a + \langle b \rangle$ is a unit in the quotient ring $R/\langle b \rangle$, then $a$ does not divide $b$ in $R$.
Prove of "$\Longleftarrow$":
Which want to prove that if $a$ does not divide $b$ in $R$, then $a + \langle b \rangle$ is a unit in the quotient ring $R/\langle b \rangle$.
Assume $a$ does not divide $b$ in $R$.
Then, there exist $k \in R$ such that $b = ak + r$, where $r \in R$ and $r \neq 0$.
Which I am stuck on how to prove that $r = -1$. Which then I can prove that $ak - 1 \in \langle b \rangle$ and conclude that $a + \langle b \rangle$ is a unit in the quotient ring $R/\langle b \rangle$.
Also, is the prove of "$\implies$" correct ?
And, I don't know where to apply the given condition that $\langle a \rangle$ is a maximal ideal of $R$.