Limit blog registration to .edu and .org addreses

First: I have searched. And found variations of my question elsewhere, always without a reply.

How can one limit new blog signups to individuals with a particular gtld, such as .edu and .org?

In fact, that's what I want to do. Limit it to those two.