Changed the way it checks for errors after it validates