add min and max length validation