small fix to validation.js