The professor called the valedictorian to explain the uniform rule