Replaced closure with a regular function.
Removed input mergin on the submit state.
Separated Form default_data and input data.