changed login method to email adress instead of username
changed login method to email adress instead of username