add default user id if it is empty