bug fix in webapp/validator.coffee