redirect with register param if register