added 'is_invalid_val' and bug fixes in webapp/validator.coffee