added a task to register add and validate a bag, fixes #88