added a warning dialog if opening registration with a registration number that already exists