adds validation for min-max length
adds specs for validation of min,max_length