Added missing argument to validate_hostname

Fixed an issue where validate_hostname was missing an argument
representing the value it was supposed to validate.