result.getUserInfo().getUserId() should be checked for empty as well?