Issue #2393563 by eshta: Refactor validation functions for personalize elements.
Merge branch 'Issue-2393563' into 7.x-1.x