Logging in with email address

A idea that is working perfectly on my website. First off the same email
can not be registered twice because with these changes users can login
with either their email address or their usersname. I think some people
on the forums requested this feature and I also think it is a great
security idea. Change anything I did as you wish.