Fixed errors on email login.