Adds a few validation rules.