Tips for getting a mortgage and buying a house with bad credit