fix uid handling for user register and group membership request