Added form data binding and console output.