committing the code of clear and cancel in registration module