We assume that all primes mentioned are distinct. Let $M_n=p_1p_2\cdots p_n$, and let $M_{n+1}=p_1p_2\cdots p_np_{n+1}$. We want to prove the induction step. Given that for a certain $k$ we have
$$a^{(p_1-1)(p_2-1)\cdots(p_k-1)}\equiv 1\pmod{M_k},\tag{1}$$
we want to conclude that
$$a^{(p_1-1)(p_2-1)\cdots(p_k-1)(p_{k+1}-1)}\equiv 1\pmod{M_{k+1}}.\tag{2}$$
First note, by raising the left side of (1) to the $(p_{k+1}-1)$-th power, that
$$a^{(p_1-1)(p_2-1)\cdots(p_k-1)(p_{k+1}-1)}\equiv 1\pmod{M_{k}}.\tag{3}$$
Note also that $a^{p_{k+1}-1}\equiv 1\pmod{p_{k+1}}$. Raising both sides to the power $(p_1-1)(p_2-1)\cdots(p_k-1)$ we conclude that
$$a^{(p_1-1)(p_2-1)\cdots(p_k-1)(p_{k+1}-1)}\equiv 1\pmod{p_{k+1}}.\tag{4}$$
Finally, from (3) and (4), the desired conclusion follows, since $M_{k+1}=M_kp_{k+1}$ and $M_k$ and $p_{k+1}$ are relatively prime.