Add functions file.
Add a function to check the trefff Id.
Add a function to take to error page.
Add some type for the join treff page.
Revise Join treff page