added edit registration for agency and apikey