[1.7.x] Fixed #23847 -- Improved the email_check example in the auth documentation.

Backport of 87bd13617c57a806deb550e3af1c06ce00517a9c from master.