Updated change password to ensure correct error message is shown.