added unique checks and shortened urls slugs to 4 characters
forgot to safeguard previous slugs