fix logout when student get teacher page