Fix email validation in generate key dialog