fix domain save on login