implementando realm security