How can I set a validation such that a minimum of 3 characters need to be entered in a field?