Adding validations to control panel number inputs.