merged validator into validate widget