This function isn't working -- no userid is returned..