added nextPage() and fixed Validation bug