Allow authentication with email-address+password

Previously, username and password were required. With this patch, the
email address can be used to authenticate the user with the password
Merge pull request #631 from greezybacon/feature/email-logins

Allow authentication with email-address+password

Reviewed-By: Peter Rotich <peter@osticket.com>