Provide the ability to log in with long email addresses

Fixes bug 3063