validate session id in metastore resource