Added update and delete function in user API