how did vaccine become useful in medicine​