Added 'validatedata' that is fired before throwing validation error message. User can add custom message using the options object
Authored by: prudhvireddy 2012-03-13
Parent: [r6097]
Child: [r6099]