Mobile keyboards tend to add spaces when auto-completing words. We don’t strip trailing spaces from email addresses on the login screen. I’ve had users trying to log in on mobile run into this, it returns
"no account matches firstname.lastname@example.org", for an account that does exist.
They are stripped from the invite form already. We should strip them on login too.