form validations and input masking