changed login to use email address.