validation on calendar edit event.