API bug in user.Id and friend.Id validaton fixed