How to validate new added field (Phone number) which is added to registration form?

How to validate new added field (Phone number) which is added to registration form?

error code: 523