Adding exceptions if name is already in use