Fixed the unique validator