Allow setting max_characters on validate, and two hooks for custom code.