finished telephone verify function

refactored code removed console logs I was using to follow the code