Added validation for slugs
Improved the migration for adding the slug column with an index and automatic generation of slugs of existing posts.