Fix bug: displaying inappropriate errors

Fix error display on exceeding unpaid leave input