Validate hostname