Validate params