Update agent_registration.rb