validation and leave balances