Dynamically add input fields to modal and get values