modify insertuser func to get new id