Fix the settings controller
Add uniqueness to setting