Applying payments to the correct account