Making sure that nothing happens unless there are two names inserted