 # Called once the store is loaded
 # checks the course and roles and will redirect if there is only a single course and role
 DisplayOrRedirect = (transition, callback) ->
-  courses = CourseListingStore.allCourses() or []
+  courses = CourseListingStore.allValidCourses() or []
   [course] = courses
   if courses.length is 1 and course.roles?.length is 1
     roleType = courses[0].roles[0].type

      isStudent = _.find roles, (role) -> role.type is 'student'
      isTeacher = _.find roles, (role) -> role.type is 'teacher'

      if isStudent or not isTeacher # HACK since a student does not currently have a role
        courseLink = <Router.Link
          className='tutor-course-item'
          to='viewStudentDashboard'
          params={{courseId}}>{course.name}</Router.Link>

      if isTeacher
        if courseLink?
          altLink = <Router.Link

      </BS.Row>

  render: ->
    courses = CourseListingStore.allValidCourses() or []
    body = if courses.length
      <div className='-course-list'>{@renderCourses(courses)}</div>
    else
