Error while trying to run form

You need to follow the docs. required_slots is a method within a FormValidationAction class.