How do I set a character limit in a text field so that it can't be less than 6 or more than 6?