Make login work with email

Login now works with email. Every test user's email is <first name>@<first name>.com. Every password is "foobar".