The Validated Field add-on for Advanced Custom Fields provides input masking and server-side validation of other field types.