Disable next page if conditions are not met.