Fix bug so case of email doesn't matter