Logging in with email and not username
There is a module for that, try Email Registration, from module description: 


  Allow users to register and login using only an email address. Users can then log-in using their email address and password for authentication.
  
  A username is generated and assigned based on the user name part of
  the email address and their user ID


is avilable in D7, D8