Validate negative numbers in the posts per page setting

issue #1236
- added validation to not allow number less than 0