Changes validation main function so outputting works again.