fixed validation error when auto-generating slugs