added teacher username check