fix email authentication