correct registration show hide logic