minor bug fix in webapp/validation.coffee