format phone number before saving