set page to 1 if incorrect