added min max betweenlength and value validation methods