move phone number checking from within functions to it's own function.
function needs testing and validating.