added the login module to allow email address as login as well