Revert "fix invalidEmail js"

This reverts commit 2f2ffea7eb9b4d0ab1451c0f499e6eaf1e5101da.