Trim email address before submitting to API.

Technically, it's better to do this on the server side, which is where I thought I had implemented it.