register window validation