A fraudster who exploited two vulnerable elderly men he was caring for by applying for credit in their names has been jailed.