[Add] Added library to check the phone format
[FIX] Missed delete all for device type