Added cancel to register