added return call when validatelog fails