Added validation to Category and Page models and automated setting the slug columns