set value to defaultValue on input tags instead of setting up a react class