Replace email validation javascript