Adding a validation to check available capacity