Update chat_security.rb