if someone with good credit is applying for a home loan do they get denied the loan if their spouse has bad credit. does the spouse have to be on the loan