form now re-renders correctly when given invalid input