Added validation for plugin settings. Number of posts plugin setting and shortcode count setting work now.