Fix for user object missing error

Resolves the missing user object error which prevented the sample app
from working