fix deprecated email validation