Fixed controller to treat xml. Fixed model to compute uniqueID and validate its uniqueness