Completes the create and destroy functions of admin.