fixed login to use email