Added update function to set provider users role to provider