prevent double registration