ensure valid page query int