renamed userid to authid