Fix for email login