blocking input of same names, improved deleting