Adding code for stoping user to cancel leave after reaching todate as
current date.