verify validness when connect