Making the leave reason field optional
Checking whether the user has already applied for leave on the day before applying leave for the day.