Add validatePhone function for js-validations