Added integrity check on password change