add checkRegSign_valid function