if the api is sent an invalid userid, it will create one that is greater than the greatest id in the users collection by 1