MDL-42097 fix handling of passwords when creating new users