Obtaining a mortgage with less than perfect credit