directive to validate and format phone number working