logic is implemented, checkTimeValidity() method completed, alerting through logs