adding categorys and validation rules