Error handling for no userid found