form now accepting form input as an object