Constructor validation