optimized email validation