Fixed query validation for empty query objects + Allow www in URL hostname