Add email confirmations and integration test