Fix a bug preventing user password for being changed (OMS-546)

There was a variable name clash in the update_passwd function