#10: validate name attribute