Validate negative post per page in the settings page

In the settings page you can select a negative number for Posts Per Page, this commit add the according validation, expect a number greater than 0.