fix invalidEmail js