Issue #77 Login with username a@ and similar

Fix for issue #77