Only show delete event button when it is valid.