If you are applying for a mortgage, you might not realise how big a part your credit score has to play when buying a new home.