Conditional Email Not Working Properly