Added search teacher with conditional operators.