Validate hostnames
Don't set $id, we have it already