Function validateProps

Utility function for validating the construct properties.