Something you need to do before you buy a house is check your credit record.