Yes, if you get a pre approval done before end of this year it will be valid for next 12 months.
The new mortgage rules starting Jan 1, 2018 won't effect it.
Sent from my iPhone using myREINspace
You can go back 3 preceding years from the year of your sale. On the other side you can carry forward the loss indefinitely to be offset any capital gains in the future.