fix bug in teacher login