Transaction validation for debit and credit accounts