formats phone number before saving