add validate events date and unit testing