Mark input_errors as reference at do_input_validation declaration, it fixes #3108