fixed teacher form query