How to add an input mask validation?