Fixed the unqiue validator according to
https://github.com/Sammaye/MongoYii/pull/13/