implements the function of teacher login
Merge remote-tracking branch 'origin/master'