Merge pull request #3 from JakeRawr/master

fixed server error
fixed can't duplicate email