fixing XUser creation routine