The company says hackers stole account information belonging to 500 million Yahoo users two years ago.