throws error if invalid session id is passed