Use primary email if available

Closes #1