Added code to check whether a specified password is already set. If it is, then no change will be detected.