fix for email validation
db transaction safety
Merge pull request #17 from flyingice/master

db transaction + email validation