Adds email and logic