size types must be unique and name value should not be empty