added min-length and max-length