I have a class with contact form validation and a trait with a function which creates a token which is used for the validation. I have tried to follow some advice from other