Fixed uniqueness validation of residents