Add pagination and teacher.is_teacher_valid method