add shortcut method validateNotEmpty.