bf9eb65 Update scope validation with database record.