require react 0.10
add validation errors as third argument to onSubmit handler