what are the stages of a mortgage approval?