fix #20: add before_validaiton and validaiton minimum length 1