Replaced preg_match() with filter_var() to determine if a value is an e-mail address.