added name validation to list and model