create dynamic form to capture user input and store that in mongodb