How to add validation (input mask) to fields