Ad isValid conditional for address and phone parameters and Add phone numbers
Refactored js with objects