Created a formtoken creation and validation functions
Added a hidden input in register page that will have as a value a random token
Forgotten semicolon
Added a hidden input in session start page that will have as a value a random token
Added csrf protection in register form
Added csrf protection in login form
Added hidden inputs user update forms
Added csrf protection in the three update forms