MOSYNC-3068 and MOSYNC-3019

MOSYNC-3019: implemented the validators for all the widgets and fixed code review issues (code reviewer: Florin Ciurcan)
MOSYNC-3068: fixed code review issues (code reviewer: Florin Ciurcan)