shifts validity testing for phone number and addresses into the createPhoneNumber and createAddress methods.