PRD-4984 - Embedded datasource dialog's validate logic was flawed

(cherry picked from commit 56fa4d0)