Header logic now works. Also fixed so there are case insensitive queries with email.