Added email/password authentication. For #26.