corrected changePassword smb function