move email check to server side
Merge pull request #10 from flyingice/master

move email check to server side