Added number validation for page number