checking duplicate error code
make region's name required