Added some new form validation rules, copied from https://github.com/macaron-contrib/binding