Correctly synchronise sid and username across domains