Implemented box validation based on port format and parameter values.