Added validation to custom_name field