Added logging to password checks.