How can I generate checkbox options based on textbox input