[1.6.x] Cleaned formatting/comments in PasswordResetFormTest

Backport of 59a880863 from master.
[1.6.x] Fixed #21291 -- Ensured inactive users cannot reset their passwords

Thanks kz26 for the report and the suggested fix. Refs #19758.

Backport of 5f5259036 from master.