db transaction + email validation