Why is the phone number validation not effective?