Added length validation to list