implement user domain check