Added validation user input in the PagingWidget class