Added validations for credits and debits.