fix is_a_credit? method and accounts page