* altered is_pw_correct to check against the old and against the new hashes. Backward compatibility is preserved.