Trim email address before submitting to API.

Yes, good point. I'm still getting an error when I submit an email address with spaces around it so I'll check the server side code and make changes there if necessary.