Teacher disciplined after writing 'stupid' on student's forehead