Creating an input form with two-way data binding