Fixed login error for lessons window.