Fix for email logins