always set input type, set input min