validation of name in custom item