Fixed #5972 Install tool no valid mail check

Regex is identical to the one in Validator.php.