bind input fields to models