Fix error for non-logged in user trying to get to teacher dash