Allow e-mail address for login

Prepare login form to accept e-mail address instead of username.