Validate inside validate function