The doctrine of justification by faith alone doesn't undermine the importance of sanctification, it is the foundation for it. The key is to properly distinguish the two graces (or blessings) of the Christian life in a proper fashion, and to not undermine the comfort of justification with our teaching on sanctification.