This seems like a handy way to confirm email addresses when a user signs up to your service.
If it returns false, send a regular "confirm your email" email.
I wish browsers found an easy, secure way to bake this into the product. I'd much rather a confirmation modal than having to go to your email and click a link.