added min and max to input form