only input  beetween a min and max value