added beforeValidate callback for validate widget
Merge branch 'master' of git://github.com/twinh/widget