added register agency and update agency.