After you file

the loan is irrelevant. 

see this link for a discussion of the rules to claim the credit including the year you can claim it. 

post back if you have additional questions 

https://www.energy.gov/eere/solar/homeowners-guide-federal-tax-credit-solar-photovoltaics