cache valid word lengths
add inputs to the html