server flow for updating doctor implemented