Better way to get userid in demo.

This is a better way to get the userid.