Updated login to work with email.