making collection name and code required in colleciton add