fixes #7270: Error message not accurate if password has to be changed.