Fixed caching on production.
Added uniqueness validation to User model.