Added condition for credit balance