Form validation. validator.coffee.