fixed issues with bind-input and improved set-form-input and read-form-input