[Validator][#2538] hostname validator overwrite

Close #2538
[Validator][EmailAddress] Refactor getHostnameValidator