register checking