Add teacher authentication helper, update views