If you do need to validate the user input, for example before you store the value to database, then using a model is the right choice. It will make things quite easy for you.
Remember the client side validation is not enough. We have to validate it in the server side.
Consider using CFormModel if ‘page_size’ is not an attribute of some CActiveRecord.
If you are working with the page size of a CGridView or CListView, then you can simplify the validation by using intval(), without using a model.