what you need to consider before getting a loan