Login with registered email

I finish my work for issue #145. Please merge this pull request.