[forms] Add custom validator for slug.