Changing userid to id