validation of the format of the phone number(10 digit)